<include file="public@header" />
<!--header-web-->
<div id="container-page">
    <aside id="sitebar">
        <!--相关标签-->
        <div class="sitebar_list">
            <h4 class="sitebar_title">相关标签</h4>
            <div class="tagcloud">
                <volist name="relateTagData" id="v" key="k">
                    <a href="{$v.real_url}" class="tag-cloud-link tag-link-{$k} tag-link-position-{$k}"
                       style="font-size: 15px;">{$v.name}</a>
                </volist>
            </div>
        </div>
        <script type="text/javascript">
            $(function() {
                var elm = $('.totop');
                var startPos = $(elm).offset().top;
                $.event.add(window, "scroll", function() {
                    var p = $(window).scrollTop();
                    $(elm).css('position',((p) > startPos) ? 'fixed' : 'static');
                    $(elm).css('top',((p) > startPos) ? '0px' : '');
                });
            });
        </script>
    </aside>  <article class="box">
    <h2 class="searchtitle">搜索关键字：
        <font color="#f37800">{$keyword}</font>，搜索到 <font color="#f37800">{$total} </font>条结果  </h2>


    <!--最新文章-->
    <volist name="data" id="v">
        <section class="list">
            <h2 class="mecctitle">
                <a href="{$v.real_url}" target="_blank">
                    {$v.post_title}
                </a>
            </h2>

            <span class="titleimg">
                <a href="{$v.real_url}" target="_blank">
                    <empty name="v.thumbnail">
                        <img width="1000" height="556" src="/themes/quick_start/public/assets/images/sw-1000x556.png"
                             class="attachment-thumbnail size-thumbnail wp-post-image" title="{$v.post_title}" alt="{$v.post_title}"
                             srcset="/themes/quick_start/public/assets/images/sw-1000x556.png 1000w, /themes/quick_start/public/assets/images/sw-1000x556.png 768w" sizes="(max-width: 1000px) 100vw, 1000px"/>
                        <else/>
                        <if condition="strpos($v['thumbnail'],'http') === 0">
                            <img width="1000" height="556" src="{$v.thumbnail}"
                                 class="attachment-thumbnail size-thumbnail wp-post-image" title="{$v.post_title}" alt="{$v.post_title}"
                                 srcset="{$v.thumbnail} 1000w, {$v.thumbnail} 768w" sizes="(max-width: 1000px) 100vw, 1000px"/>

                            <else />
                            <img width="1000" height="556" src="/upload/{$v.thumbnail}"
                                 class="attachment-thumbnail size-thumbnail wp-post-image" title="{$v.post_title}" alt="{$v.post_title}"
                                 srcset="/upload/{$v.thumbnail} 1000w, /upload/{$v.thumbnail} 768w" sizes="(max-width: 1000px) 100vw, 1000px"/>
                        </if>

                    </empty>
                </a>
            </span>

            <time class="">
                {:date("Y.m.d",$v.create_time)} &nbsp;<eq name="v.is_top" value="1"><span class="zan">Hot</span></eq>
            </time>

            <div class="zaiyao">
                <p>{$v.post_excerpt}</p>
            </div>
            <div class="list-tab">
                <volist name="v.taglist" id="vv">
                    <a href="{$vv.real_url}" class="tab">{$vv.name}</a>
                </volist>
            </div>
        </section>
    </volist>

    <!--分页完成-->
    <div style="display:block;margin: 20px auto;">
        {$pages}
    </div>
</article>


<include file="public@footer" />